The Dreamweaver JavaScript API > File manipulation functions > dreamweaver.newFromTemplate()

 

dreamweaver.newFromTemplate()

Availability

Dreamweaver 3.0

Description

Creates a new document from the specified template. If no argument is supplied, the Select Template dialog box appears.

Arguments

{templateURL}, bmaintain

templateURL is the path to a template in the current site, expressed as afile: // URL.
bmaintain is a Boolean, true or false, indicating whether or not to maintain the link to the original template.

Returns

Nothing.

Enabler

None.